package com.jcfy.project.module.mapper;

import java.util.List;

import com.jcfy.project.module.domain.TOrderGoods;

/**
 * 订单商品Mapper接口
 *
 * @author jiangfeng
 * @date 2020-08-05
 */
public interface TOrderGoodsMapper {
    /**
     * 查询订单商品
     *
     * @param orderGoodsId 订单商品ID
     * @return 订单商品
     */
    public TOrderGoods selectTOrderGoodsById(Long orderGoodsId);

    /**
     * 查询订单商品列表
     *
     * @param tOrderGoods 订单商品
     * @return 订单商品集合
     */
    public List<TOrderGoods> selectTOrderGoodsList(TOrderGoods tOrderGoods);

    /**
     * 新增订单商品
     *
     * @param tOrderGoods 订单商品
     * @return 结果
     */
    public int insertTOrderGoods(TOrderGoods tOrderGoods);

    /**
     * 修改订单商品
     *
     * @param tOrderGoods 订单商品
     * @return 结果
     */
    public int updateTOrderGoods(TOrderGoods tOrderGoods);

    /**
     * 删除订单商品
     *
     * @param orderGoodsId 订单商品ID
     * @return 结果
     */
    public int deleteTOrderGoodsById(Long orderGoodsId);

    /**
     * 批量删除订单商品
     *
     * @param orderGoodsIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTOrderGoodsByIds(Long[] orderGoodsIds);
}
